<div class="pageHeader">
 <form onsubmit="return navTabSearch(this);" action="#{$smarty.const.ACT}#/Customer/customer_show/" method="post">
  <div class="searchBar">
   <table class="searchContent">
    <tr>
     <td><select class="combox" name="searchKeyword">
       <option value="name">客户名称</option>
       <option value="tel">客户电话</option>
       <option value="zipcode">邮编</option>
       <option value="address">联系地址</option>
       <option value="intro">简介</option>
      </select></td>
     <td><input type="text" name="searchValue" /></td>
     <td> 建档日期：
      <input type="text" class="date" name="bdt" size="15" readonly="true" value="#{$bdt}#" />
      -
      <input type="text" class="date" name="edt" size="15" readonly="true" value="#{$edt}#"  /></td>
     <td>所属行业：</td>
     <td><input name="trade.id" value="#{$trade}#" type="hidden"/>
      <input class="required" value="#{$trade_name}#" name="trade.name" type="text" postField="keyword" suggestFields="name" 
					suggestUrl="#{$smarty.const.ACT}#/CstDict/cst_dict_select/type/trade/" lookupGroup="trade"/></td>
     <td><ul>
       <li>
        <div class="buttonActive">
         <div class="buttonContent">
          <button type="submit">检索</button>
         </div>
        </div>
       </li>
      </ul></td>
     <td><ul>
       <li><a class="button" href="#{$smarty.const.ACT}#/Customer/advanced_search/" target="dialog" mask="true" title="查询框"><span>高级检索</span></a></li>
      </ul></td>
    </tr>
   </table>
   <div class="subBar"></div>
  </div>
 </form>
</div>
<div class="pageContent">
 <div class="panelBar">
  <ul class="toolBar">
   <li><a class="add" href="#{$smarty.const.ACT}#/Customer/customer_add/"  rel="customer_add"  title="客户添加" target="dialog" width="850" height="450"><span>添加</span></a></li>
   <li class="line">line</li>
   <li><a class="delete" href="#{$smarty.const.ACT}#/Customer/customer_del/" postType="string" title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" ><span>删除</span></a></li>
   <li class="line">line</li>
   <li><a class="edit" href="#{$smarty.const.ACT}#/Customer/customer_modify/id/{sid_user}/" rel="customer_modify" target="dialog" width="850" height="450"><span>修改</span></a></li>
   <li class="line">line</li>
   <li><a class="talk" href="#{$smarty.const.ACT}#/CstTalk/cst_talk_show/cusID/{sid_user}/" target="dialog" targetType="navTab" title="沟通记录"><span>沟通记录</span></a></li>
   <li class="line">line</li>
   <li><a class="people" href="#{$smarty.const.ACT}#/CstLinkman/cst_linkman_show/cusID/{sid_user}/"  rel="cst_linkman_show"  target="navTab" title="联系人" width="850" height="450"><span>联系人</span></a></li>
   <li class="line">line</li>
   <li><a class="pro" href="#{$smarty.const.ACT}#/CstService/cst_service_show/cusID/{sid_user}/"  rel="customer_modify"  target="navTab" title="服务记录" width="850" height="450"><span>服务</span></a></li>
   <li class="line">line</li>
   <li><a class="search" href="#{$smarty.const.ACT}#/CstService/cst_service_show/cusID/{sid_user}/"  rel="customer_modify"  target="navTab" title="服务记录" width="850" height="450"><span>服务</span></a></li>
  </ul>
 </div>
 <table class="table" width="100%" layoutH="138">
  <thead>
   <tr>
    <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
    <th width="50">编号</th>
    <th width="150">客户名称</th>
    <th width="50">联系人</th>
    <th width="100">手机</th>
    <th width="80">电话</th>
    <th width="150">沟通记录</th>
    <th width="130">沟通时间</th>
    <th width="130">下次联系时间</th>
    <th width="60">等级</th>
    <th width="60">来源</th>
    <th width="60">经济类型</th>
    <th width="80">所属行业</th>
    <th width="100">主营产品</th>
    <th width="100">地址</th>
   </tr>
  </thead>
  <tbody>
  
  #{foreach from=$list key=k item=v}#
  <tr target="sid_user" rel="#{$v.id}#">
   <td><input name="ids" value="#{$v.id}#" type="checkbox"></td>
   <td>#{$v.id}#</td>
   <td><a target="dialog"  href="#{$smarty.const.ACT}#/Customer/customer_show_one/cusID/#{$v.id}#/" rel="customer_show_one_#{$v.id}#" title="#{$v.name}#" width="980" height="480">#{$v.name}#</a></td>
   <td>#{$v.linkman}#</td>
   <td>#{$v.mobile}#</td>
   <td>#{$v.tel}#</td>
   <td>#{$v.cst_trace.title}#</td>
   <td>#{$v.cst_trace.bdt}#</td>
   <td>#{$v.cst_trace.nextbdt}#</td>
   <td>#{$dict[$v.level]}#</td>
   <td>#{$dict[$v.source]}#</td>
   <td>#{$dict[$v.ecotype]}#</td>
   <td>#{$dict[$v.trade]}#</td>
   <td>#{$v.main_pro}#</td>
   <td>#{$v.address}#</td>
  </tr>
  #{/foreach}#
   </tbody>
  
 </table>
 <div class="panelBar">
  <form id="pagerForm" method="post" action="#{$smarty.const.ACT}#/Customer/customer_show/">
   <input type="hidden" name="pageNum" value="1" />
   <input type="hidden" name="numPerPage" value="#{$numPerPage}#" />
   <input type="hidden" name="orderField" value="${param.orderField}" />
   <input type="hidden" name="trade_id" value="#{$trade}#" />
   <input type="hidden" name="trade_name" value="#{$trade_name}#" />
   <input type="hidden" name="bdt" value="#{$bdt}#" />
   <input type="hidden" name="edt" value="#{$edt}#" />
  </form>
  <div class="pages"> <span>显示</span>
   <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
    <option value="20" #{if $numPerPage eq '20'}# selected="selected" #{/if}#>20</option>
    <option value="50" #{if $numPerPage eq '50'}# selected="selected" #{/if}#>50</option>
    <option value="100" #{if $numPerPage eq '100'}# selected="selected" #{/if}#>100</option>
    <option value="200" #{if $numPerPage eq '200'}# selected="selected" #{/if}#>200</option>
    <option value="500" #{if $numPerPage eq '500'}# selected="selected" #{/if}#>500</option>
   </select>
   <span>条，共#{$totalCount}#条</span> </div>
  <div class="pagination" targetType="navTab" totalCount="#{$totalCount}#" numPerPage="#{$numPerPage}#" pageNumShown="10" currentPage="#{$currentPage}#"></div>
 </div>
</div>
